package com.pangda.pojo.data;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author xjy
 * @since 2024-06-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("operation_log")
public class OperationLogData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "业务类型")
    private Integer businessType;

    @ExcelProperty(value = "创建者ID")
    private Integer createBy;

    @ExcelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ExcelProperty(value = "错误信息")
    private String errorMsg;

    @ExcelProperty(value = "JSON结果数据")
    @TableField("jsonResult")
    private String jsonResult;

    @ExcelProperty(value = "执行方法全路径")
    @TableField("method")
    private String method;

    @ExcelProperty(value = "操作者IP")
    @TableField("operIp")
    private String operIp;

    @ExcelProperty(value = "操作地点")
    @TableField("operLocation")
    private String operLocation;

    @ExcelProperty(value = "操作者姓名")
    @TableField("operName")
    private String operName;

    @ExcelProperty(value = "操作参数")
    @TableField("operParam")
    private String operParam;

    @ExcelProperty(value = "操作时间")
    @TableField("operTime")
    private LocalDateTime operTime;

    @ExcelProperty(value = "操作URL")
    @TableField("operUrl")
    private String operUrl;

    @ExcelProperty(value = "操作类型")
    @TableField("operatorType")
    private Integer operatorType;

    @ExcelProperty(value = "请求方法")
    @TableField("requestMethod")
    private String requestMethod;

    @ExcelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ExcelProperty(value = "操作标题")
    @TableField("title")
    private String title;

}
